package com.example.cdctest.pojo;

import java.io.Serializable;

public class Category implements Serializable {
    private Integer id;

    /**
	* 类别名
	*/
    private String categoryName;

    /**
	* 1为使用，0为删除
	*/
    private Boolean enable;

    /**
	* 该类别下问题的数量
	*/
    private Integer categoryQuestionCount;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Integer getCategoryQuestionCount() {
        return categoryQuestionCount;
    }

    public void setCategoryQuestionCount(Integer categoryQuestionCount) {
        this.categoryQuestionCount = categoryQuestionCount;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", categoryName=").append(categoryName);
        sb.append(", enable=").append(enable);
        sb.append(", categoryQuestionCount=").append(categoryQuestionCount);
        sb.append("]");
        return sb.toString();
    }
}